-
-
Notifications
You must be signed in to change notification settings - Fork 858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Python 3.13 #3460
Conversation
.github/workflows/test-suite.yml
Outdated
push: | ||
branches: ["master"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this change? I don't think it should?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was so I could run the CI on my feature branch and be confident it passes before opening a PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 could you revert it? I think this should be covered by the pull_request
target.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separately, we could add a workflow_dispatch
trigger so it can be invoked on fork branches manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, happy to revert it. It just means next time I'll either make my changes directly on my main
(not recommended) or not bother contributing (also not recommended :)
pull_request
alone doesn't cover it: if I push changes to my fork, the CI won't run.
workflow_dispatch
is good to have anyway, but I don't want to have to manually and tediously click buttons to trigger builds each and every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually I just open a pull request in my fork for CI if I need to test it before opening a real pull request.
I'm not sure exactly what the conditions cause this, but having push
without a filter and pull_request
can run jobs twice on each pull request commit e.g. astral-sh/python-build-standalone@accb28c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, creating a PR in your own fork is possible, it's still an extra impediment to contribution. This project's contribution guidelines shown how to test locally, which is good.
But we get all these free CI minutes, I'm a big fan of CIs, and my opinion is we should encourage people to test on CI and make it easy for them. No "works on my machine". Let me easily test all the Python version, all the operating systems, all the build steps in a clean CI environment. Let's have good "DX".
And it's possible to add config to prevent those double runs on upstream, I can look it up if you like.
Anyway, I've reverted this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it's possible to add config to prevent those double runs on upstream, I can look it up if you like.
I'm open to a proposal. My main reactions are that it doesn't belong in this pull request / limiting to the main branch is the standard pattern in all the repositories I work in. I agree making it easy for developers to test in CI is nice though :)
Some prior discussion of 3.8 in #3419 (comment) |
Summary
Python 3.13 was released in October:
Let's add it to the CI and classifiers.
Python 3.8 went EOL at the same time, shall we drop support for that too?
Checklist